<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Applyuid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-applyuid" data-rule="required" data-source="tryride/getuser" data-pagination="true" data-page-size="10" class="form-control selectpage" name="row[applyuid]" data-params="function" type="text" data-init="{$row.applyuid}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Touid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-touid" data-rule="required" data-source="tryride/getuser" data-pagination="true" data-page-size="10" class="form-control selectpage" name="row[touid]" data-params="function" type="text" data-init="{$row.touid}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('申请人电话')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-applymobile" min="0" data-rule="required" class="form-control" name="row[applymobile]" type="text" value="{$row.applymobile}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('申请人地址')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-applyaddress" min="0" data-rule="required" class="form-control" name="row[applyaddress]" type="text" value="{$row.applyaddress}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('被申请人电话')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tomobile" min="0" data-rule="required" class="form-control" name="row[tomobile]" type="text" value="{$row.tomobile}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('被申请人地址')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-toaddress" min="0" data-rule="required" class="form-control" name="row[toaddress]" type="text" value="{$row.toaddress}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Starttime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-startTime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[startTime]" type="text" value="{$row.startTime}">
        </div>
    </div>
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Endtime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-endTime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[endTime]" type="text" value="{$row.endTime}">
        </div>
    </div> -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Time_unit')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-time_unit"  class="form-control" name="row[time_unit]">
                <option value="86400" {in name="86400" value="$row.time_unit" }selected{/in}>1day</option>
                <option value="259200" {in name="259200" value="$row.time_unit" }selected{/in}>3day</option>
                <option value="604800" {in name="604800" value="$row.time_unit" }selected{/in}>7day</option>
                <option value="1296000" {in name="1296000" value="$row.time_unit" }selected{/in}>15day</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Commission')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-commission" readonly="readonly" min="0" class="form-control" step="0.01" name="row[commission]" type="number" value="60">
        </div>
    </div>
    <!-- <input id="c-commission" min="0" class="form-control" step="0.01" name="row[commission]" type="hidden" value="60"> -->
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
